<div class="main form">
<?php echo __("Customize text of your outgoing emails.")?><br><br>
<table>
	<tbody>
		<th><?php echo __('Template Name')?></th>
		
		<th><?php echo __('Action')?></th>
		<?php
$i = 0;
foreach($emailTemplates as $template):
	$class = null;
	if (++$i % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>

				<td><?php echo __(Inflector::humanize($template['EmailTemplate']['name']))?></td>
			
				<td>
					<?php echo $html->link(__('Edit Template',true),array('action'=>'admin_edit',$template['EmailTemplate']['id']))?>
					|  
					<?php echo $html->link(__('Restore Default',true),array('action'=>'admin_restorDefault',$template['EmailTemplate']['name']))?>
				</td>
			</tr>
		<?php endforeach;?>
		<tr>
		</tr>
	</tbody>
</table>
</div>